import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 DeviceCategory 分页列表
 */
export function getDeviceCategoryPagination(data: any) {
  return axios.get(`${context}/deviceCategory/pagination`, { params: data })
}

/**
 * 获取 DeviceCategory 所有数据
 */
export function getDeviceCategoryAllList(data: any) {
  return axios.get(`${context}/deviceCategory/allList`, { params: data })
}

/**
 * 获取 DeviceCategory 详情
 */
export function getDeviceCategoryDetailById(id: any) {
  return axios.get(`${context}/deviceCategory/${id}`, { params: { id } })
}

/**
 * 新增 DeviceCategory
 */
export function addDeviceCategory(data: any) {
  return axios.post(`${context}/deviceCategory`, data)
}

/**
 * 修改 DeviceCategory
 */
export function updateDeviceCategory(data: any) {
  return axios.put(`${context}/deviceCategory`, data)
}

/**
 * 删除 DeviceCategory
 */
export function batchRemoveDeviceCategory(data: any) {
  return axios.post(`${context}/deviceCategory/batchRemove`, data)
}
